home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / FLTK-1.0.6 / test / mandelbrot_ui.fl < prev    next >
Encoding:
FLTK User Interface Designer  |  1998-12-07  |  2.4 KB  |  73 lines

  1. # data file for the Fltk User Interface Designer (fluid)
  2. version 0.99 
  3. gridx 10 
  4. gridy 10 
  5. snap 3
  6. decl {\#include "mandelbrot.h"} {public
  7.  
  8. decl {\#include <stdlib.h>} {} 
  9.  
  10. class Drawing_Window {open
  11. } {
  12.   Function {make_window()} {open return_type void
  13.   } {
  14.     Fl_Window window {open
  15.       xywh {178 479 450 520} resizable
  16.       code0 {o->size_range(220,220);} visible
  17.     } {
  18.       Fl_Box d {
  19.         user_data this user_data_type {void*} selected
  20.         xywh {20 80 410 430} box DOWN_BOX color 0 selection_color 47 resizable
  21.         class Drawing_Area
  22.       }
  23.       Fl_Input x_input {
  24.         label {x:}
  25.         callback {d->X = atof(o->value());;
  26. d->new_display();}
  27.         xywh {30 15 125 30} type Float box THIN_DOWN_BOX color 8 selection_color 7 labelfont 11 labelsize 20 textfont 11 textsize 20
  28.         code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
  29.       }
  30.       Fl_Input y_input {
  31.         label {y:}
  32.         callback {d->Y = atof(o->value());
  33. d->new_display();}
  34.         xywh {175 15 125 30} type Float box THIN_DOWN_BOX color 8 selection_color 7 labelfont 11 labelsize 20 textfont 11 textsize 20
  35.         code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
  36.       }
  37.       Fl_Input w_input {
  38.         label {w:}
  39.         callback {d->scale = atof(o->value());
  40. d->new_display();}
  41.         xywh {325 15 105 30} type Float box THIN_DOWN_BOX color 8 selection_color 7 labelfont 11 labelsize 20 textfont 11 textsize 20
  42.         code0 {o->when(FL_WHEN_ENTER_KEY|FL_WHEN_RELEASE);}
  43.       }
  44.       Fl_Slider {} {
  45.         label {brightness:}
  46.         callback {d->brightness = int(o->value());
  47. d->new_display();}
  48.         xywh {80 50 160 15} type Horizontal box THIN_DOWN_BOX labelsize 10 align 4 step 1 slider_size 0.1
  49.         code0 {o->bounds(0,d->MAX_BRIGHTNESS);}
  50.         code2 {o->value(d->DEFAULT_BRIGHTNESS);}
  51.         code3 {o->slider(FL_UP_BOX);}
  52.       }
  53.       Fl_Box {} {
  54.         label {left: click = zoom out, drag = zoom in
  55. right click: Julia set}
  56.         xywh {240 50 190 30} labelsize 10 align 24 deactivate
  57.       }
  58.       Fl_Slider {} {
  59.         label {iterations:}
  60.         callback {d->iterations = 1<<int(o->value());
  61. d->new_display();}
  62.         xywh {80 65 160 15} type Horizontal box THIN_DOWN_BOX labelsize 10 align 4 step 1 slider_size 0.1
  63.         code0 {o->bounds(1,d->MAX_ITERATIONS);}
  64.         code2 {o->value(d->DEFAULT_ITERATIONS);}
  65.         code3 {o->slider(FL_UP_BOX);}
  66.       }
  67.     }
  68.   }
  69.   decl {void update_label();} {public
  70.   }
  71.